package com.college.eduService.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 讲师
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "edu_teacher")
public class EduTeacher {
    /**
     * 讲师ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 讲师姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 讲师简介
     */
    @TableField(value = "intro")
    private String intro;

    /**
     * 讲师资历,一句话说明讲师
     */
    @TableField(value = "career")
    private String career;

    /**
     * 头衔 1高级讲师 2首席讲师
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 讲师头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField(value = "is_deleted")
    @TableLogic//逻辑删除
    private Byte isDeleted;

    /**
     * 创建时间
     */
    //添加时自动填充
    @TableField(value = "gmt_create",fill =FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    //添加和修改时自动填充
    @TableField(value = "gmt_modified",fill =FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}